﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000817 RID: 2071
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetSceneMapInfoScRsp : IMessage<GetSceneMapInfoScRsp>, IMessage, IEquatable<GetSceneMapInfoScRsp>, IDeepCloneable<GetSceneMapInfoScRsp>, IBufferMessage
	{
		// Token: 0x17001A47 RID: 6727
		// (get) Token: 0x06005CE0 RID: 23776 RVA: 0x000F8D03 File Offset: 0x000F6F03
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetSceneMapInfoScRsp> Parser
		{
			get
			{
				return GetSceneMapInfoScRsp._parser;
			}
		}

		// Token: 0x17001A48 RID: 6728
		// (get) Token: 0x06005CE1 RID: 23777 RVA: 0x000F8D0A File Offset: 0x000F6F0A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetSceneMapInfoScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001A49 RID: 6729
		// (get) Token: 0x06005CE2 RID: 23778 RVA: 0x000F8D1C File Offset: 0x000F6F1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetSceneMapInfoScRsp.Descriptor;
			}
		}

		// Token: 0x06005CE3 RID: 23779 RVA: 0x000F8D23 File Offset: 0x000F6F23
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetSceneMapInfoScRsp()
		{
		}

		// Token: 0x06005CE4 RID: 23780 RVA: 0x000F8D38 File Offset: 0x000F6F38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetSceneMapInfoScRsp(GetSceneMapInfoScRsp other) : this()
		{
			this.fLEPBOMHCNE_ = other.fLEPBOMHCNE_;
			this.retcode_ = other.retcode_;
			this.sceneMapInfo_ = other.sceneMapInfo_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06005CE5 RID: 23781 RVA: 0x000F8D85 File Offset: 0x000F6F85
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetSceneMapInfoScRsp Clone()
		{
			return new GetSceneMapInfoScRsp(this);
		}

		// Token: 0x17001A4A RID: 6730
		// (get) Token: 0x06005CE6 RID: 23782 RVA: 0x000F8D8D File Offset: 0x000F6F8D
		// (set) Token: 0x06005CE7 RID: 23783 RVA: 0x000F8D95 File Offset: 0x000F6F95
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool FLEPBOMHCNE
		{
			get
			{
				return this.fLEPBOMHCNE_;
			}
			set
			{
				this.fLEPBOMHCNE_ = value;
			}
		}

		// Token: 0x17001A4B RID: 6731
		// (get) Token: 0x06005CE8 RID: 23784 RVA: 0x000F8D9E File Offset: 0x000F6F9E
		// (set) Token: 0x06005CE9 RID: 23785 RVA: 0x000F8DA6 File Offset: 0x000F6FA6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001A4C RID: 6732
		// (get) Token: 0x06005CEA RID: 23786 RVA: 0x000F8DAF File Offset: 0x000F6FAF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<SceneMapInfo> SceneMapInfo
		{
			get
			{
				return this.sceneMapInfo_;
			}
		}

		// Token: 0x06005CEB RID: 23787 RVA: 0x000F8DB7 File Offset: 0x000F6FB7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetSceneMapInfoScRsp);
		}

		// Token: 0x06005CEC RID: 23788 RVA: 0x000F8DC8 File Offset: 0x000F6FC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetSceneMapInfoScRsp other)
		{
			return other != null && (other == this || (this.FLEPBOMHCNE == other.FLEPBOMHCNE && this.Retcode == other.Retcode && this.sceneMapInfo_.Equals(other.sceneMapInfo_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06005CED RID: 23789 RVA: 0x000F8E28 File Offset: 0x000F7028
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.FLEPBOMHCNE)
			{
				num ^= this.FLEPBOMHCNE.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.sceneMapInfo_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06005CEE RID: 23790 RVA: 0x000F8E8E File Offset: 0x000F708E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06005CEF RID: 23791 RVA: 0x000F8E96 File Offset: 0x000F7096
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06005CF0 RID: 23792 RVA: 0x000F8EA0 File Offset: 0x000F70A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Retcode);
			}
			this.sceneMapInfo_.WriteTo(ref output, GetSceneMapInfoScRsp._repeated_sceneMapInfo_codec);
			if (this.FLEPBOMHCNE)
			{
				output.WriteRawTag(120);
				output.WriteBool(this.FLEPBOMHCNE);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005CF1 RID: 23793 RVA: 0x000F8F0C File Offset: 0x000F710C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.FLEPBOMHCNE)
			{
				num += 2;
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.sceneMapInfo_.CalculateSize(GetSceneMapInfoScRsp._repeated_sceneMapInfo_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005CF2 RID: 23794 RVA: 0x000F8F6C File Offset: 0x000F716C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetSceneMapInfoScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.FLEPBOMHCNE)
			{
				this.FLEPBOMHCNE = other.FLEPBOMHCNE;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.sceneMapInfo_.Add(other.sceneMapInfo_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005CF3 RID: 23795 RVA: 0x000F8FCD File Offset: 0x000F71CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005CF4 RID: 23796 RVA: 0x000F8FD8 File Offset: 0x000F71D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 42U)
					{
						if (num != 120U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.FLEPBOMHCNE = input.ReadBool();
						}
					}
					else
					{
						this.sceneMapInfo_.AddEntriesFrom(ref input, GetSceneMapInfoScRsp._repeated_sceneMapInfo_codec);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040023E6 RID: 9190
		private static readonly MessageParser<GetSceneMapInfoScRsp> _parser = new MessageParser<GetSceneMapInfoScRsp>(() => new GetSceneMapInfoScRsp());

		// Token: 0x040023E7 RID: 9191
		private UnknownFieldSet _unknownFields;

		// Token: 0x040023E8 RID: 9192
		public const int FLEPBOMHCNEFieldNumber = 15;

		// Token: 0x040023E9 RID: 9193
		private bool fLEPBOMHCNE_;

		// Token: 0x040023EA RID: 9194
		public const int RetcodeFieldNumber = 3;

		// Token: 0x040023EB RID: 9195
		private uint retcode_;

		// Token: 0x040023EC RID: 9196
		public const int SceneMapInfoFieldNumber = 5;

		// Token: 0x040023ED RID: 9197
		private static readonly FieldCodec<SceneMapInfo> _repeated_sceneMapInfo_codec = FieldCodec.ForMessage<SceneMapInfo>(42U, EggLink.DanhengServer.Proto.SceneMapInfo.Parser);

		// Token: 0x040023EE RID: 9198
		private readonly RepeatedField<SceneMapInfo> sceneMapInfo_ = new RepeatedField<SceneMapInfo>();
	}
}
